/**
 * 对返回的HTML字符串进行过滤处理
 */
function addBaseUrl(html) {
  let exp = /\/_nuxt\//g
  return html.replace(exp, process.env.PUBLIC_PATH + '/_nuxt/')
}

function filter(html) {
  return addBaseUrl(html)
}

module.exports = filter
